package br.com.site.status.dao;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import br.com.site.dao.DAOGenericoImpl;
import br.com.site.model.Status;

@Repository
public class StatusDAOImpl extends DAOGenericoImpl<Status, Long> implements StatusDAO{
	
	private static Log LOG = LogFactory.getLog(StatusDAOImpl.class);

	@Transactional(readOnly = true)
	public List<Status> listarTodos() {
		return listar();
	}

	@Transactional(readOnly = true)
	public Status buscarPorId(Long id) {
		return findPorId(id);
	}

	@Transactional
	public Long save(Status status) {
		return super.save(status);
	}

	@Transactional
	public boolean saveOrUpdate(Status status) {
		return super.saveOrUpdate(status);
	}

	@Transactional
	public boolean merge(Status status) {
		return super.merge(status);
	}

	@Transactional
	public boolean update(Status status) {
		return super.update(status);
	}

	@Transactional
	public boolean delete(Status status) {
		return super.delete(status);
	}

}
